package main
import(
	"fmt"
	"math/rand"
)

func main(){
	for i:=10;i>=0;i-=1{
		
		var year = rand.Intn(100)+2000
		var isLeap = (year%400==0)||((year%4==0)&&(year%100!=0))
		var month = rand.Intn(12)+1
		var daysInmonth = 0
		switch month{
	case 2:
		if isLeap{
           daysInmonth = 29
		}else{
			daysInmonth = 28
		}
    case 1,3,5,7,8,10,12:
		daysInmonth = 31
	case 4,6,9,11:
		daysInmonth = 30
	}

	fmt.Println(year,month,daysInmonth)
	}
}
